import request from '../request.ts'

// 创建考试分配
export const createExamAssignment = (data) => {
  return request({
    url: '/exam-assignments/create',
    method: 'post',
    data
  })
}

// 获取考试分配详情 (POST方式)
export const getExamAssignment = (data) => {
  return request({
    url: '/exam-assignments/get',
    method: 'post',
    data
  })
}

// 更新考试分配
export const updateExamAssignment = (data) => {
  return request({
    url: '/exam-assignments/update',
    method: 'post',
    data
  })
}

// 删除考试分配
export const deleteExamAssignment = (data) => {
  return request({
    url: '/exam-assignments/delete',
    method: 'post',
    data
  })
}

// 获取我的考试分配
export const getMyExamAssignments = () => {
  return request({
    url: '/exam-assignments/my',
    method: 'post'
  })
}
